<template>
  <div class="Inform">
    <div class="body" @click="go('testing')">
      <span v-if="num>=0">词汇量<i>:</i>{{num}}</span>
      <span v-if="num==0">测试词汇量</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'index',
    data: function () {
      return {}
    },
    props: ['num'],
    mounted: function () {
    },
    methods: {
      go: function (str) {
        this.$router.push({
          name: str
        })
      }
    },
    components: {}
  }
</script>

<style scoped>
  @import "../../assets/css/components/Inform/index.css";
</style>
